package services;

import dao.ISend;
import factory.SendDaoFactory;
import vo.Send;

import java.util.List;

public class SendServicempl implements ISend {
    ISend iSend= SendDaoFactory.getInstance();//获取对应的(客户操作类)接口对象,向上转型

    @Override
    public boolean add(Send send) {
        return iSend.add(send);
    }

    @Override
    public boolean delete(Send send) {
        return iSend.delete(send);
    }

    @Override
    public boolean modify(Send send) {
        return iSend.modify(send);
    }

    @Override
    public Send getcustombyid(int id) {
        return iSend.getcustombyid(id);
    }

    @Override
    public List<Send> getall() {
        return iSend.getall();
    }
}
